package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.OTCUserGroup;
import mn.idax.exchange.otc.entity.OTCUserGroupExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface OTCUserGroupMapper {
    int countByExample(OTCUserGroupExample example);

    int deleteByExample(OTCUserGroupExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OTCUserGroup record);

    int insertSelective(OTCUserGroup record);

    List<OTCUserGroup> selectByExampleWithRowbounds(OTCUserGroupExample example, RowBounds rowBounds);

    List<OTCUserGroup> selectByExample(OTCUserGroupExample example);

    OTCUserGroup selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OTCUserGroup record, @Param("example") OTCUserGroupExample example);

    int updateByExample(@Param("record") OTCUserGroup record, @Param("example") OTCUserGroupExample example);

    int updateByPrimaryKeySelective(OTCUserGroup record);

    int updateByPrimaryKey(OTCUserGroup record);
    
    int countTrustGroupTotalByUserId(Integer userId);
}